#include <stdio.h>
#define N 10

int main() {
	int a[N], m, n, s = 0;
	float b;
	for (m = 0; m < N; m++)
		scanf("%d", &a[m]);
	for (m = 0; m < N - 1; m++) {
		for (n = 0; n < N - 1 - m; n++)
			if (a[n] < a[n + 1]) {
				a[n] = a[n] + a[n + 1];
				a[n + 1] = a[n] - a[n + 1];
				a[n] = a[n] - a[n + 1];
			}
	}
	for (m = 0; m < N; m++) {
		b = b + a[m];
		if (a[m] < 60)
			s++;
	}
	b = b / 10;
	printf("average:%.2f highest:%d lowest:%d fail:%d\n", b, a[0], a[9], s);
	for (m = 0; m < N; m++)
		printf("%-4d", a[m]);
}
